#include "wx/wx.h"
//#include "wx/app.h"
#include "wx/menu.h"
#include "BMD_136.h"

class MyApp : public wxApp
{
public:
	virtual bool OnInit();

	MasterFrame * main_frame;
};






/*
MyButton::MyButton(const wxString& title)
       : wxFrame(NULL, wxID_ANY, title, wxDefaultPosition, wxSize(270, 150))
{

  wxPanel *panel = new wxPanel(this, wxID_ANY);
  wxButton *button = new wxButton(panel, wxID_EXIT, 
      wxT("Quit"), wxPoint(660, 30));
  button->Show(true);

  Centre();
}

void MyButton::OnQuit(wxCommandEvent& WXUNUSED(event))
{
    Close(true);
}
*/











////////////////////////////////////////////////////////////

IMPLEMENT_APP(MyApp)

bool MyApp::OnInit()
{
	main_frame = new MasterFrame(wxString("Bombs Must Detonate"));
	main_frame->Show(true);

	/*
	menubar = new wxMenuBar;
	file = new wxMenu;

	file->Append(wxID_CLOSE, wxT("&Quit"));
	menubar->Append(file, wxT("&File"));
	SetMenuBar(menubar);
	*/
/*

	int args[] = {WX_GL_RGBA, WX_GL_DOUBLEBUFFER, WX_GL_DEPTH_SIZE, 16, 0};
	//gl_canvas = new wxGLCanvas((wxFrame *) main_frame, wxID_ANY,0, wxPoint(0,0),wxSize(640,480));
	gl_canvas = new BasicGLPane((wxFrame*) main_frame, args);


	gl_canvas->Show();

	wxButton *button = new wxButton(panel, wxID_EXIT, 
      wxT("Quit"), wxPoint(660, 30));
	button->Show(true);
*/
//	MyButton *button = new MyButton(wxT("Button"));
//    button->Show(true);


	return true;
}
